home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pico / makefile.msc < prev    next >
Makefile  |  1996-03-14  |  3KB  |  109 lines

  1. # $Id: makefile.msc,v 4.10 1996/03/15 07:41:11 hubert Exp $
  2. #
  3. #   Michael Seibel
  4. #   Networks and Distributed Computing
  5. #   Computing and Communications
  6. #   University of Washington
  7. #   Administration Builiding, AG-44
  8. #   Seattle, Washington, 98195, USA
  9. #   Internet: mikes@cac.washington.edu
  10. #
  11. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  12. #
  13. #
  14. #   Pine and Pico are registered trademarks of the University of Washington.
  15. #   No commercial use of these trademarks may be made without prior written
  16. #   permission of the University of Washington.
  17. #
  18. #   Pine, Pico, and Pilot software and its included text are Copyright
  19. #   1989-1996 by the University of Washington.
  20. #
  21. #   The full text of our legal notices is contained in the file called
  22. #   CPYRIGHT, included with this distribution.
  23. #
  24.  
  25. #
  26. #
  27. # Makefile for MS-DOS version of the PINE composer library and 
  28. # stand-alone editor pico.
  29. #
  30. # MSC version of makefile
  31. #
  32. CC=cl
  33. RM=del
  34. CP=copy 
  35.  
  36. #includes mouse support
  37. MOUSE=        -DMOUSE
  38. #includes symbol info for debugging 
  39. DEBUG=            #-Zi -Od
  40.  
  41. !IF    DEFINED(PCTCP)
  42. NET=    -DPCTCP
  43. !ELSE
  44. NET=
  45. !ENDIF
  46.  
  47. #in general, no debugging and optimize for size
  48. CFLAGS=    -Os $(DEBUG) -WX -AL -Gt4 -Gy $(NET) -DJOB_CONTROL -DANSI -DDOS $(MOUSE)
  49.  
  50. # switches for library building
  51. LIBER=lib
  52. LIBARGS=/NOL -+
  53.  
  54. HFILES=        estruct.h edef.h efunc.h ebind.h pico.h
  55.  
  56. CFILES=        ansi.c attach.c basic.c bind.c browse.c \
  57.         buffer.c composer.c display.c file.c fileio.c \
  58.         line.c ibmpc.c osdep.c pico.c random.c region.c \
  59.         search.c spell.c window.c word.c
  60.  
  61. OFILES=        ansi.obj attach.obj basic.obj bind.obj browse.obj \
  62.         buffer.obj composer.obj display.obj file.obj fileio.obj \
  63.         line.obj ibmpc.obj osdep.obj pico.obj random.obj region.obj \
  64.         search.obj spell.obj window.obj word.obj
  65.  
  66. all:        blddate.exe pico.exe
  67.  
  68. .c.obj:
  69.     $(CC) -c $(CFLAGS) $*.c
  70.     $(LIBER) libpico $(LIBARGS) $*;
  71.  
  72. $(OFILES):    $(HFILES)
  73.  
  74. #
  75. # dependencies for the Unix versions of pico and libpico.a
  76. #
  77. osdep.c:    os_dos.c
  78.         $(RM) osdep.c
  79.         $(CP) os_dos.c osdep.c
  80.  
  81. osdep.h:    os_dos.h
  82.         $(RM) osdep.h
  83.         $(CP) os_dos.h osdep.h
  84.  
  85.  
  86. libpico.lib:    osdep.c osdep.h $(OFILES)
  87. #    del libpico.lib
  88. #    $(LIBER) libpico +ansi+attach+basic+bind+browse;
  89. #    $(LIBER) libpico +buffer+composer+display+file+fileio;
  90. #    $(LIBER) libpico +line+ibmpc+osdep+pico+random+region;
  91. #    $(LIBER) libpico +search+spell+window+word;
  92.  
  93. blddate.exe:    blddate.c
  94.     $(CC) blddate.c
  95.  
  96. main.obj: main.c $(HFILES)
  97.     $(CC) /c $(CFLAGS) main.c
  98.  
  99. pico.exe: libpico.lib main.obj
  100.     link /I /NOI /NOE /stack:32768 main.obj,pico.exe,nul,libpico.lib;
  101. #    link /CO /I /NOI /NOE /stack:32768 main.obj,pico.exe,nul,libpico.lib;
  102.  
  103. #clean:
  104. #        $(RM) *.lib
  105. #        $(RM) *.obj
  106. #        $(RM) osdep.c
  107. #        $(RM) osdep.h
  108. #
  109.